 <!DOCTYPE html>
<html>
	<head>
	<title>科普一下</title>
		<meta http-equiv="content-type"content="text/html; charset=UTF-8"/>
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<base href="<?php if(isset($url_root))echo $url_root; ?>" />
		<link rel="stylesheet" href="http://cdn.bootcss.com/twitter-bootstrap/3.0.3/css/bootstrap.min.css">
		<link href="./tpl/css/style.css" type="text/css" rel="stylesheet">
		
	</head>
	
	<body>
	<section id="header">
	<form action="#" method="get">
		<input name="kw" type="text" placeholder="搜索一下">
		<span class="glyphicon glyphicon-search"></span>
	</form>
	<span class="glyphicon glyphicon-align-justify"  data-toggle="dropdown"></span>
	<ul class="dropdown-menu">
	  <li><a href="#">回到首页</a></li>
      <li><a href="#">我的收藏</a></li>
      <li><a href="#">关于科普</a></li>
      <li><a href="#">千万别点！</a></li>
      <li><a href="#">也不能点！</a></li>
    </ul>
	</section>
<section id="container">
	<section id="block_list">
	<?php if(isset($data)&&is_array($data))foreach($data as $k=>$v){ ?>
	<section  class="word_block">
		<header><span class="date"><?php if(isset($v['day']))echo $v['day']; ?></span>
		<span class="glyphicon glyphicon-book"></span><?php if(isset($v['word']))echo $v['word']; ?></header>
		<p><span class="glyphicon glyphicon-question-sign"></span>
		<?php if(isset($v['des']))echo $v['des']; ?></p>
		<hr>
		<p><span class="glyphicon glyphicon-link"></span>
		<?php if(isset($v['example']))echo $v['example']; ?></p>
		<div class="btn-group btn-group-justified dig">
	        <a role="button" class="btn btn-default" data-op='{"op":"up","id":<?php if(isset($v['id']))echo $v['id']; ?>}'>
	        <span class="glyphicon glyphicon-thumbs-up"></span> 顶(<b><?php if(isset($v['val']['up']))echo $v['val']['up']; ?></b>)
	        </a>
	        <a role="button" class="btn btn-default" data-op='{"op":"down","id":<?php if(isset($v['id']))echo $v['id']; ?>}'>
	        <span class="glyphicon glyphicon-thumbs-down"></span> 踩(<b><?php if(isset($v['val']['down']))echo $v['val']['down']; ?></b>)
	        </a>
        </div>
		
		
	</section>
	<?php } ?>
	
	</section>
	<section  class="word_block">
	<div class="btn-group btn-group-justified">
	<a data-last="<?php if(isset($v['id']))echo $v['id']; ?>" data-sign="<?php if(isset($sign))echo $sign; ?>" id="loadmore" role="button" class="btn btn-default" ><span class="glyphicon glyphicon-repeat "> 加载更多...</span></a>
	</div>
	</section>
</section>

</body>
<script src="http://cdn.bootcss.com/jquery/1.10.2/jquery.min.js"></script>
<script src="http://cdn.bootcss.com/twitter-bootstrap/3.0.3/js/bootstrap.min.js"></script>
<script type="text/javascript" src="tpl/js/common.js"></script>
</html>
